{NameVirtualHost IP:SSLPORT}
<VirtualHost {IP:SSLPORT}>
	ServerName {HOST.DOMAIN}
	ServerAdmin {ADMINEMAIL}
	
	DocumentRoot {PATH}
	ErrorLog {LOGPATH}/error
	CustomLog {LOGPATH}/access combined

	[IF ALIAS]
	ServerAlias {ALIASES} {NOHOST} {CATCHALL}
	[ENDIF ALIAS]

	[IF DOMAINREDIRECT]
	RewriteEngine On
	RewriteCond %{HTTP_HOST}		!^{IP}(:{PORT})?$
	RewriteCond %{HTTP_HOST}		!^{HOST.DOMAIN}(:{PORT})?$
	RewriteRule ^/(.*)		http://{HOST.DOMAIN}/$1 [L,R]
	RewriteOptions inherit
	[ENDIF DOMAINREDIRECT]
	
	{SS_OPTIONS}
	
{CALLHOOKS}
	
	<Directory {PATH}>
	AllowOverride {ALLOWOVERRIDE}
	</Directory>
	
	RewriteEngine On
	RewriteCond %{HTTP_HOST}		^([^:]+)
	RewriteRule ^/personalcp/?$		{PERSONALCP} [L,R]
	RewriteCond %{HTTP_HOST}		^([^:]+)
	RewriteRule ^/domaincp/?$		{DOMAINCP} [L,R]
	RewriteCond %{HTTP_HOST}		^([^:]+)
	RewriteRule ^/resellercp/?$		{RESELLERCP} [L,R]
	RewriteCond %{HTTP_HOST}		^([^:]+)
	RewriteRule ^/servercp/?$		{SERVERCP} [L,R]
	RewriteCond %{HTTP_HOST}		^([^:]+)
	RewriteRule ^/webcp/?$		{WEBCP} [L,R]

	Redirect /mail https://zm1.241computers.com

	ErrorDocument 401 /errors/401.html
	ErrorDocument 402 /errors/402.html
	ErrorDocument 403 /errors/403.html
	ErrorDocument 404 /errors/404.html
	ErrorDocument 500 /errors/500.html
	
	SSLEngine on
	SSLCipherSuite ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
	SSLCertificateFile {SSLDIR}{SERVERCRT}
	SSLCertificateKeyFile {SSLDIR}{SERVERKEY}
	[IF INTERMEDIATECRT]
	SSLCACertificateFile {SSLDIR}intermediate.crt
	[ENDIF INTERMEDIATECRT]
	SSLOptions +StdEnvVars
	SetEnvIf User-Agent '.*MSIE.*' nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
	
</VirtualHost>
